package cn.template.models.common;

import lombok.Data;
import org.springframework.data.domain.Page;

import java.util.List;

@Data
public class PagingResponse<T> {
    PagingInfo paging;
    List<T> data;

    public PagingResponse( Page<T> paging) {
        this.paging = new PagingInfo(paging);
        this.data = paging.getContent();
    }
}

